package com.dhj.jvmstudy.chapter05;

import java.util.ArrayList;
import java.util.Random;

/**
 * -Xms60m -Xmx60m
 */
public class HeapInstanceTest {

    byte[] buffer = new byte[new Random().nextInt(1024*1024)];

    public static void main(String[] args) throws InterruptedException {
        ArrayList<HeapInstanceTest> list = new ArrayList<>();

        while (true){
            list.add(new HeapInstanceTest());
            Thread.sleep(400);
        }
    }

}
